export let guideData = [
    {
        tips:"对话框引导点",
        preFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas")',
            'cc.find("Canvas").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
        ],
        guideNode:'cc.find("Canvas")',
        maskWidth:'cc.find("Canvas").width',
        maskHeight:'cc.find("Canvas").height',
        talkIndex: 1,
    },
    {
        tips:"进入svTestTs场景",
        preFunc: [
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/enters/enter_SV_TEST_TS")',
            'cc.find("Canvas/enters/enter_SV_TEST_TS").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestTs"',
        ],
        guideNode:'cc.find("Canvas/enters/enter_SV_TEST_TS")',
        maskWidth:'cc.find("Canvas/enters/enter_SV_TEST_TS").width',
        maskHeight:'cc.find("Canvas/enters/enter_SV_TEST_TS").height',
    },
    {
        tips:"向上拖动",
        preFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas/New ScrollView/view/content")',
            'cc.find("Canvas/New ScrollView/view/content").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas/New ScrollView/view/content")',
            'cc.find("Canvas/New ScrollView/view/content").position.y > 100',
        ],
        guideNode:'cc.find("Canvas/New ScrollView/view/content")',
        maskWidth:'cc.find("Canvas/New ScrollView/view/content").width',
        maskHeight:'cc.find("Canvas/New ScrollView/view/content").height',
    },
    {
        tips:"点击",
        preFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas/New ScrollView/view/content").children.length >= 6',
            'cc.find("Canvas/New ScrollView/view/content").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").getComponent("svTestTs")',
            'cc.find("Canvas").getComponent("svTestTs").testSvCom.items.length >= 1001',
        ],
        guideNode:'cc.find("Canvas/New ScrollView/view/content").children[5]',
        maskWidth:'cc.find("Canvas/New ScrollView/view/content").children[5].width',
        maskHeight:'cc.find("Canvas/New ScrollView/view/content").children[5].height',
        maskOffsetY: 40,
    },
    {
        tips:"在顶部添加1个元素",
        preFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").children.length >= 3',
            'cc.find("Canvas").children[2].children.length >= 2',
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").getComponent("svTestTs").testSvCom.items.length >= 1002;',
        ],
        guideNode:'cc.find("Canvas").children[2].children[1]',
        maskWidth:'cc.find("Canvas").children[2].children[1].width',
        maskHeight:'cc.find("Canvas").children[2].children[1].height',
    },
    {
        tips:"在底部添加1个元素",
        preFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").children.length >= 3',
            'cc.find("Canvas").children[2].children.length >= 3',
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").getComponent("svTestTs").testSvCom.items.length >= 1003;',
        ],
        guideNode:'cc.find("Canvas").children[2].children[2]',
        maskWidth:'cc.find("Canvas").children[2].children[2].width',
        maskHeight:'cc.find("Canvas").children[2].children[2].height',
    },
    {
        tips:"返回主场景",
        preFunc:[
            'cc.director.getScene().name == "svTestTs"',
            'cc.find("Canvas").children.length >= 2',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
        ],
        guideNode:'cc.find("Canvas").children[1]',
        maskWidth:'cc.find("Canvas").children[1].width',
        maskHeight:'cc.find("Canvas").children[1].height',
    },
    {
        tips:"进入svTestJs场景",
        preFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/enters/enter_SV_TEST_JS")',
            'cc.find("Canvas/enters/enter_SV_TEST_JS").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestJs"',
        ],
        guideNode:'cc.find("Canvas/enters/enter_SV_TEST_JS")',
        maskWidth:'cc.find("Canvas/enters/enter_SV_TEST_JS").width',
        maskHeight:'cc.find("Canvas/enters/enter_SV_TEST_JS").height',
    },
    {
        tips:"在顶部添加1个元素",
        preFunc:[
            'cc.director.getScene().name == "svTestJs"',
            'cc.find("Canvas").children.length >= 3',
            'cc.find("Canvas").children[2].children.length >= 2',
        ],
        endFunc:[
            'cc.director.getScene().name == "svTestJs"',
            'cc.find("Canvas/New ScrollView").getComponent("scrollViewCom").items.length >= 501'
        ],
        guideNode:'cc.find("Canvas").children[2].children[1]',
        maskWidth:'cc.find("Canvas").children[2].children[1].width',
        maskHeight:'cc.find("Canvas").children[2].children[1].height',
    },
    {
        tips:"返回主场景",
        preFunc:[
            'cc.director.getScene().name == "svTestJs"',
            'cc.find("Canvas").children.length >= 2',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
        ],
        guideNode:'cc.find("Canvas").children[1]',
        maskWidth:'cc.find("Canvas").children[1].width',
        maskHeight:'cc.find("Canvas").children[1].height',
    },
    {
        tips:"进入MVC Test场景",
        preFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/enters/enter_MVC_Test")',
            'cc.find("Canvas/enters/enter_MVC_Test").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "MVCTest"',
        ],
        guideNode:'cc.find("Canvas/enters/enter_MVC_Test")',
        maskWidth:'cc.find("Canvas/enters/enter_MVC_Test").width',
        maskHeight:'cc.find("Canvas/enters/enter_MVC_Test").height',
    },
    {
        tips:"点击增加数据按钮",
        preFunc:[
            'cc.director.getScene().name == "MVCTest"',
            'cc.find("Canvas/testPanel/add")',
            'cc.find("Canvas/testPanel/add").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "MVCTest"',
            'cc.find("Canvas/testPanel").getComponent("testPanelview").svCom.items.length >= 11'
        ],
        guideNode:'cc.find("Canvas/testPanel/add")',
        maskWidth:'cc.find("Canvas/testPanel/add").width',
        maskHeight:'cc.find("Canvas/testPanel/add").height',
    },
    {//无限制引导点
        tips:"无限制引导点 用于过度 \n 增加20个元素完成",
        preFunc:[
            'cc.director.getScene().name == "MVCTest"',
            'cc.find("Canvas")',
            'cc.find("Canvas").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "MVCTest"',
            'cc.find("Canvas/testPanel")',
            'cc.find("Canvas/testPanel").getComponent("testPanelview").svCom.items.length >= 20'
        ],
        guideNode:'cc.find("Canvas")',
        maskWidth:'cc.find("Canvas").width',
        maskHeight:'cc.find("Canvas").height',
    },
    {
        tips:"返回主界面",
        preFunc:[
            'cc.director.getScene().name == "MVCTest"',
            'cc.find("Canvas/back")',
            'cc.find("Canvas/back").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
        ],
        guideNode:'cc.find("Canvas/back")',
        maskWidth:'cc.find("Canvas/back").width',
        maskHeight:'cc.find("Canvas/back").height',
    },
    {
        tips:"打开帮助窗口",
        preFunc:[
            'cc.director.getScene().name == "main"',
            '!cc.find("Canvas/helpBox")',
            'cc.find("Canvas/helpBtn")',
            'cc.find("Canvas/helpBtn").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/helpBox")',
            'cc.find("Canvas/helpBox").active == true',
        ],
        guideNode:'cc.find("Canvas/helpBtn")',
        maskWidth:'cc.find("Canvas/helpBtn").width',
        maskHeight:'cc.find("Canvas/helpBtn").height',
    },
    {
        tips:"拖动窗口",
        preFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/helpBox")',
            'cc.find("Canvas/helpBox").active == true',
            'cc.find("Canvas/helpBox/content/bg")',
            'cc.find("Canvas/helpBox/content/bg").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/helpBox/content")',
            'cc.find("Canvas/helpBox/content").position.x != 0',
            'cc.find("Canvas/helpBox/content").position.y != 0',
        ],
        guideNode:'cc.find("Canvas/helpBox/content/bg")',
        maskWidth:'cc.find("Canvas/helpBox/content/bg").width',
        maskHeight:'cc.find("Canvas/helpBox/content/bg").height',
    },
    {
        tips:"关闭帮助窗口",
        preFunc:[
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/helpBox")',
            'cc.find("Canvas/helpBox").active == true',
            'cc.find("Canvas/helpBox/content/closeBtn")',
            'cc.find("Canvas/helpBox/content/closeBtn").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "main"',
            '!cc.find("Canvas/helpBox")',
        ],
        guideNode:'cc.find("Canvas/helpBox/content/closeBtn")',
        maskWidth:'cc.find("Canvas/helpBox/content/closeBtn").width',
        maskHeight:'cc.find("Canvas/helpBox/content/closeBtn").height',
    },
    {
        tips:"进入地图场景",
        preFunc: [
            'cc.director.getScene().name == "main"',
            'cc.find("Canvas/enters/enter_map")',
            'cc.find("Canvas/enters/enter_map").active == true',
        ],
        endFunc:[
            'cc.director.getScene().name == "map"',
        ],
        guideNode:'cc.find("Canvas/enters/enter_map")',
        maskWidth:'cc.find("Canvas/enters/enter_map").width',
        maskHeight:'cc.find("Canvas/enters/enter_map").height',
    },
    {
        tips:"引导结束对话框",
        preFunc:[
            'cc.director.getScene().name == "map"',
            'cc.find("Canvas")',
            'cc.find("Canvas").active == true'
        ],
        endFunc:[
            'cc.director.getScene().name == "map"',
        ],
        guideNode:'cc.find("Canvas")',
        maskWidth:'cc.find("Canvas").width',
        maskHeight:'cc.find("Canvas").height',
        talkIndex: 2,
    },
];